import {
  http
} from '@/common/service.js'

/**
 * 申请请假的流程
 */
const askLeave = (data) => {
	const { leaveApplicant, reasonForLeave, leaveStartTime, deadlineForLeave} = data
	return http.post('/xy/xySysApproval/add', {
		leaveApplicant,
		reasonForLeave,
		leaveStartTime,
		deadlineForLeave,
	})
}

export default {
	askLeave
}